package com.Logistics.fegin;

import com.Logistics.dto.StationDTO;
import com.Logistics.entity.Station;
import com.Logistics.mycommon.tools.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "pd-auth",path = "/station")
public interface StationFeignClient {

    /**
     * 根据岗位name和组织id查询岗位
     * @param stationDTO
     * @return
     */
    @PostMapping("/stationId")
    public Result<Station> stationId(@RequestBody StationDTO stationDTO);
}
